package edu.vital.energy.longevity.domain.dto;

public record UserLoginDTO(
    String username,
    String password
) {
    public UserLoginDTO {
        if (username == null || username.trim().isEmpty()) {
            throw new IllegalArgumentException("Username cannot be empty");
        }
        if (password == null || password.trim().isEmpty()) {
            throw new IllegalArgumentException("Password cannot be empty");
        }
    }
} 